package com._520it.crm.web.controller;

import com._520it.crm.page.PageResult;
import com._520it.crm.query.PaymentHandleQueryObject;
import com._520it.crm.service.IPaymentHandleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("paymentHandle")
public class PaymentHandleController {
    @Autowired
    private IPaymentHandleService paymentHandleService;

    @RequestMapping("")
    public String main() {
        return "paymentHandle";
    }

    @RequestMapping("list")
    @ResponseBody
    public PageResult queryPage(PaymentHandleQueryObject qo) {
        PageResult result = null;
        result = paymentHandleService.queryPage(qo);
        return result;
    }
}
